<!-- 资本运作 -->
<template>
  <div class="fund">
    <!-- 募集资金来源 -->
    <yn-com-comTitle name="募集资金来源"></yn-com-comTitle>
    <yn-fund-source :data="source"></yn-fund-source>
    <!-- 项目投资 -->
    <yn-com-comTitle class="mt15" name="项目投资"></yn-com-comTitle>
    <yn-fund-project :data="project"></yn-fund-project>
    <!-- 关联交易 -->
    <yn-com-comTitle class="mt15" name="关联交易"></yn-com-comTitle>
    <yn-fund-relation :data="relation"></yn-fund-relation>
  </div>
</template>

<script>
import { fund } from "../script/api";

export default {
  data() {
    return {
      source: [], //募集资金来源
      project: [], //项目投资
      relation: [] //关联交易
    };
  },
  components: {},
  computed: {},
  mounted() {
    this.getData();
  },
  methods: {
    async getData() {
      const res = await fund();
      this.source = res.source ? res.source : [];
      this.project = res.project ? res.project : [];
      this.relation = res.relation ? res.relation : [];
    }
  }
};
</script>
<style lang='scss' scoped>
</style>